﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ICE.Vacations.DataBase;
using ICE.Vacations.Helper.Services;

namespace ICE.Vacations.Request
{
    public class Resolution : Documents
    {

        public bool AproveRequest(string requestID)
        {
            try
            {
                state = "Aprobada";
                //Actualizar estado de Solicitud
                if (sql.UPDATE_State(requestID, state))
                { 

                }
                 

                return true;
            }
            catch(Exception exc)
            {
                return false;
            }
            
        }

        public bool RejectRequest()
        {
            state = "Rechazada";

            sql.UPDATE_State(requestID, state);
            return true;
        }

        public void VerifyState(string requestID)
        {

        }

        public void CommentRequest(string requestID, string comment)
        {
            try
            {
            }
            catch (Exception exc)
            { 
            }
        }

    }
}
